import { _decorator } from 'cc';
import { PanelBase } from '../../Basic/UI/PanelBase';
import { LayerType } from '../../Basic/Config/BaseEnum';
const { ccclass } = _decorator;

@ccclass('LosePanel')
export class LosePanel extends PanelBase {
  panelLayer: LayerType.DialogLayer = LayerType.DialogLayer;

  protected onEnable(): void {
    super.onEnable();
  }

  onClickRevive() {
    console.log('点击复活');
    this.clickClose();
  }

  onClickAgain() {
    console.log('点击再来一次');
    this.clickClose();
  }

  onClickBack() {
    console.log('点击回主页');
    this.clickClose();
  }
}
